-
generate-qr-svgGenerate QR Code SVG -
get-qr-urlGet QR Code URL
Generate QR Code SVG
Generates a QR code and returns the raw SVG markup. Use this to inline SVG directly in HTML artifacts or documents without needing an external HTTP request. Requires install_plugins.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
text |
string | Yes | The text or URL to encode. | |
ecc |
string | No | Error correction level: L, M, Q, H. Default: L. One of: L, M, Q, H. |
Get QR Code URL
Returns the URL to a QR code image for any text or URL. The returned URL can be embedded in an img tag, fetched as an SVG artifact, or passed to other tools. Requires install_plugins.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
text |
string | Yes | The text or URL to encode. Can be any string: URL, email, phone, vCard, plain text etc. | |
format |
string | No | Output format: svg or png. Default: svg. Use svg for artifacts, png for embedding in pages. One of: svg, png. |
|
ecc |
string | No | Error correction level: L (7%), M (15%), Q (25%), H (30%). Higher levels produce denser codes but survive more damage. Default: L. One of: L, M, Q, H. |
|
size |
integer | No | PNG scale factor (1-20). Controls output image size. Default: 10 (approx 210px). Only applies to png format. |